#define NSUBEXP  10
typedef struct regexp {
  const char *startp[NSUBEXP];
  const char *endp[NSUBEXP];
  char regstart;
  char reganch;
  char *regmust;
  int regmlen;
  char program[1];
} regexp;

regexp *my_regcomp( const char *exp );
int my_regexec( regexp *prog, const char *string );
void my_regerror( const char *s );
void my_redone( regexp *prog );

#define MAGIC 0234
